@import '@/styles/variables.scss';

.address-list-page {
  min-height: 100vh;
  padding-bottom: 200rpx;
  background-color: $bg-color;
  
  .address-list {
    .address-item {
      margin: 20rpx;
      border-radius: 12rpx;
      background-color: #fff;
      overflow: hidden;
      
      .address-info {
        padding: 30rpx;
        
        .user-info {
          margin-bottom: 16rpx;
          
          .name {
            font-size: 32rpx;
            font-weight: bold;
            margin-right: 20rpx;
          }
          
          .phone {
            font-size: 28rpx;
            color: $text-color-secondary;
          }
          
          .default-tag {
            display: inline-block;
            font-size: 20rpx;
            color: #fff;
            background-color: $primary-color;
            padding: 2rpx 10rpx;
            border-radius: 6rpx;
            margin-left: 20rpx;
          }
        }
        
        .address-detail {
          font-size: 28rpx;
          color: $text-color-primary;
          line-height: 1.4;
        }
      }
      
      .address-action {
        display: flex;
        border-top: 1rpx solid $border-color-light;
        
        .action-btn {
          flex: 1;
          height: 80rpx;
          display: flex;
          align-items: center;
          justify-content: center;
          font-size: 24rpx;
          color: $text-color-secondary;
          
          &.edit {
            border-right: 1rpx solid $border-color-light;
          }
          
          .icon {
            margin-right: 6rpx;
          }
        }
      }
    }
  }
  
  .empty-address {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 200rpx;
    
    .empty-image {
      width: 200rpx;
      height: 200rpx;
      margin-bottom: 30rpx;
    }
    
    .empty-text {
      font-size: 28rpx;
      color: $text-color-secondary;
    }
  }
  
  .add-address-btn, .wx-address-btn {
    position: fixed;
    left: 30rpx;
    right: 30rpx;
    height: 80rpx;
    line-height: 80rpx;
    text-align: center;
    border-radius: 40rpx;
    font-size: 28rpx;
  }
  
  .add-address-btn {
    bottom: 120rpx;
    background-color: $primary-color;
    color: #fff;
  }
  
  .wx-address-btn {
    bottom: 30rpx;
    background-color: #fff;
    color: $text-color-primary;
    border: 1rpx solid $border-color;
    display: flex;
    align-items: center;
    justify-content: center;
    
    .wx-icon {
      width: 40rpx;
      height: 40rpx;
      margin-right: 10rpx;
    }
  }
} 